package whf.framework.file;

import java.util.List;

import whf.framework.exception.FindException;
import whf.framework.exception.NotFoundException;
import whf.framework.exception.RemoveException;

/**
 * @author wanghaifeng
 * @create Mar 28, 2007 9:18:27 PM
 * 
 */
public interface IFileService {
	/**
	 * @modify wanghaifeng Mar 28, 2007 9:22:49 PM
	 * @param folder
	 * @return
	 * @throws FindException
	 */
	public List<IFile> loadByFolder(IFolder folder) throws FindException;
	
	/**
	 * @modify wanghaifeng Mar 28, 2007 9:22:52 PM
	 * @param fileId
	 * @return
	 * @throws NotFoundException
	 */
	public IFile loadFile(long fileId) throws NotFoundException;
	
	/**
	 * @modify wanghaifeng Apr 6, 2007 10:38:51 AM
	 * @param filename
	 * @return
	 * @throws RemoveException
	 */
	public IFile findByFileName(String filename) throws FindException;
}
